Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

401
Visualizações
[Unhandled promise rejection: Error: Location "imageURL" isn't readable - Expo React Native

I am trying to convert an firebase image URL to base64 using expo FileSystem but getting following error.

[Unhandled promise rejection: Error: Location "https://pngimg.com/uploads/birds/small/birds_PNG108.png" isn't readable - Expo React Native

URL is totally fine and perfect as I can open it in browser. I am trying following URL, and tried multiple other URLs as well.

https://pngimg.com/uploads/birds/small/birds_PNG108.png

Following is my code.

import * as FileSystem from 'expo-file-system';
<TouchableOpacity onPress={async () => {
      const base64 = await FileSystem.readAsStringAsync('https://pngimg.com/uploads/birds/small/birds_PNG108.png', { encoding: 'base64' });
        Share.share(
          {
            title: 'test title',
            url: item.url,
          },
          {
            excludedActivityTypes: [
              
            ],
          }
        );
     }}>
    </TouchableOpacity>
    
  )}

Couldn't find any solution to this problem on any forum.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Maybe you should rather use

import * as Sharing from 'expo-sharing';

Save the image temporary on disc and use the uri to share the image.

than

import { Share} from 'react-native';

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda